Skip to content

[Wasm RyuJIT] Implement contained bitcast operands#128472

Merged
kg merged 2 commits into
dotnet:mainfrom
kg:contained-bitcast-operand-fix
May 22, 2026
Merged

[Wasm RyuJIT] Implement contained bitcast operands#128472
kg merged 2 commits into
dotnet:mainfrom
kg:contained-bitcast-operand-fix

Conversation

@kg
Copy link
Copy Markdown
Member

@kg kg commented May 22, 2026

Addresses an issue hit in #128382

Copilot AI review requested due to automatic review settings May 22, 2026 04:51
@kg kg added arch-wasm WebAssembly architecture area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI labels May 22, 2026
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates Wasm RyuJIT codegen to handle GT_BITCAST nodes whose operand is marked as contained (previously this path was NYI_WASM), so bitcasts of stack locals can be emitted without requiring a separate standalone operand node.

Changes:

  • Replace the NYI_WASM("Contained bitcast operands") fallback in CodeGen::genCodeForBitCast with codegen for a contained GT_LCL_VAR operand.

Comment thread src/coreclr/jit/codegenwasm.cpp
@kg
Copy link
Copy Markdown
Member Author

kg commented May 22, 2026

/ba-g dotnet/sdk#54350

@kg kg merged commit 3be408d into dotnet:main May 22, 2026
137 of 139 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arch-wasm WebAssembly architecture area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants